package cn.starrysky108.simpleerp.system.entity;

import cn.starrysky108.simpleerp.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 邮件信息表
 * </p>
 *
 * @author Carl Lee
 * @since 2021-08-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("system_message")
@ApiModel(value = "SystemMessage对象", description = "邮件信息表")
public class SystemMessage extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "发件人")
    @TableField("from")
    private Long from;

    @ApiModelProperty(value = "收件人")
    @TableField("to")
    private Long to;

    @ApiModelProperty(value = "抄送人(json列表)")
    @TableField("cc")
    private String cc;

    @ApiModelProperty(value = "主题")
    @TableField("subject")
    private String subject;

    @ApiModelProperty(value = "内容")
    @TableField("text")
    private String text;

    @ApiModelProperty(value = "附件")
    @TableField("files")
    private String files;

    @ApiModelProperty(value = "是否已读，默认false")
    @TableField("is_read")
    private Boolean isRead;


}
